package typejump.commands;

import typejump.engine.GameEngine;

public class DevFocusPlayer implements TextCommand {

	@Override
	public boolean matches(String command) {
		return command.equals("dev player focus") || command.equals("dev pf");
	}

	@Override
	public void act(String command) {
		GameEngine.setFocusOnPlayer(!GameEngine.getFocusOnPlayer());
		if (GameEngine.getFocusOnPlayer()) {
			GameEngine.addTextEffect("FOCUS ON PLAYER: ON", "dev");
		} else {
			GameEngine.addTextEffect("FOCUS ON PLAYER: OFF", "dev");
		}
	}

}
